package cn.dengta.webapp.trade.service;

import cn.dengta.webapp.base.service.BaseServiceImpl;
import cn.dengta.webapp.trade.dao.CashAmountConfigDao;
import cn.dengta.webapp.trade.entity.CashAmountConfig;
import me.codeplayer.util.X;
import org.springframework.stereotype.Service;

/**
 * 提现金额配置 服务实现类
 *
 * @author hsj
 * @since 2024-02-23
 */
@Service
public class CashAmountConfigService extends BaseServiceImpl<CashAmountConfig, CashAmountConfigDao, Long> {

	public boolean incCount(Long id) {
		if (!X.isValid(id)) {
			return false;
		}
		return this.baseDao.incCount(id) > 0;
	}
}
